package com.iflytek.exam.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.iflytek.exam.mapper.ExamTeacherMapper;
import com.iflytek.exam.domain.ExamTeacher;
import com.iflytek.exam.service.IExamTeacherService;

/**
 * teacherExamService业务层处理
 *
 * @author Dogdog
 * @date 2024-07-10
 */
@Service
public class ExamTeacherServiceImpl implements IExamTeacherService
{
    @Autowired
    private ExamTeacherMapper examTeacherMapper;

    /**
     * 查询teacherExam
     *
     * @param id teacherExam主键
     * @return teacherExam
     */
    @Override
    public ExamTeacher selectExamTeacherById(Long id)
    {
        return examTeacherMapper.selectExamTeacherById(id);
    }

    /**
     * 查询teacherExam列表
     *
     * @param examTeacher teacherExam
     * @return teacherExam
     */
    @Override
    public List<ExamTeacher> selectExamTeacherList(ExamTeacher examTeacher)
    {
        return examTeacherMapper.selectExamTeacherList(examTeacher);
    }

    /**
     * 新增teacherExam
     *
     * @param examTeacher teacherExam
     * @return 结果
     */
    @Override
    public int insertExamTeacher(ExamTeacher examTeacher)
    {
        return examTeacherMapper.insertExamTeacher(examTeacher);
    }

    /**
     * 修改teacherExam
     *
     * @param examTeacher teacherExam
     * @return 结果
     */
    @Override
    public int updateExamTeacher(ExamTeacher examTeacher)
    {
        return examTeacherMapper.updateExamTeacher(examTeacher);
    }

    /**
     * 批量删除teacherExam
     *
     * @param ids 需要删除的teacherExam主键
     * @return 结果
     */
    @Override
    public int deleteExamTeacherByIds(Long[] ids)
    {
        return examTeacherMapper.deleteExamTeacherByIds(ids);
    }

    /**
     * 删除teacherExam信息
     *
     * @param id teacherExam主键
     * @return 结果
     */
    @Override
    public int deleteExamTeacherById(Long id)
    {
        return examTeacherMapper.deleteExamTeacherById(id);
    }

    @Override
    public Long[] selectExamIds(Long userId) {
        return examTeacherMapper.selectExamIds(userId);
    }

    @Override
    public Boolean deleteExamTeacherByExamId(Long examId) {
        return examTeacherMapper.deleteExamTeacherByExamId(examId);
    }
}
